import { List } from 'echarts';
import { BasicFetchResult, SaaSPageParams } from '/@/api/model/baseModel';

export type ImageQueryParams = {
  appId: string;
  componentId?: string;
};

export type ImagePageQueryParams = ImageQueryParams & SaaSPageParams;

export type ImageUpdateDto = {
  id: string;
  preferred: boolean;
  componentVersion: string;
};

export type ImageDto = {
  id: string;
  imageName: string;
  version: string;
  organization: string;
  address: string;
  componentId: string;
  appId: string;
  preferred: boolean;
};

export type ImageItem = {
  appId: string;
  componentId: string;
  componentName: string;
  image: ImageDto;
};

export interface ImageInfo {
  id: string;
  imageName: string;
  version: string;
  organization: string;
  address: string;
  componentId: string;
  componentName: string;
  preferred: boolean;
  appId: string;
  componentVersion: string;
  image: string;
}

export interface ImageListDto {
  appId: string;
  componentId: string;
  componentName: string;
  image: ImageInfo;
}

export type ImageListGetResultModel = BasicFetchResult<ImageListDto>;

export interface isoItem {
  Id?: string;
  Name?: string;
  Image?: string;
  AppId?: string;
  ClientId?: string;
  CompId?: string;
  ISO?: string;
  Script?: string;
  Authorized?: string;
  Synchronized?: string;
  LoginConfig?: string;
  msg?: List;
}
